<?php
$from = $_GET['from']?urldecode(trim($_GET['from'])):'';
$tid = $_GET['tid']?urldecode(trim($_GET['tid'])):'';
$date = $_GET['date']?trim($_GET['date']):'';
$refresh = $_GET['refresh']?trim($_GET['refresh']):'60';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>火车票刷票器 - Made by icyleaf</title>
</head>
<?php if ( empty($from) && empty($tid) ): ?>
<body>
	<form action="<?php echo $_SERVICE['GET']; ?>" method="get">
	From: <input type="text" name="from" />
	To(id):<input type="text" name="tid" />
	Date:<input type="text" name="date" />
	<input type="submit" value="刷！" />
	</form>
</body>
<?php else: ?>
<frameset rows="28, *" frameborder="0" scrolling="no" noresize>
	<frame name="menu" src="refresh.php<?php echo '?from='.$from.'&tid='.$tid.'&date='.$date.'&refresh='.$refresh; ?>" scrolling="no" noresize />
	<frame name="browser" src="grubTicket.php<?php echo '?from='.$from.'&tid='.$tid.'&date='.$date; ?>" />
	<noframes><body></body></noframes>
</frameset>
<?php endif ?>
</html>